package com.example.designpatterns.strategy;


/**
 * 实现类3
 */
public class DiscountsStrategy3 implements Strategy1{
    @Override
    public int discounts(int money) {
        if (money>100){
            return money-15;
        }else {
            return money;
        }
    }
}
